# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to set date # Parameters - "" # Configuration Type - USER/COMPUTER # Example : date {month}{day}{hour}{minute}{year} # Note: Every bracket should be replaced with a two-digit number and time is in 24 hour format # For example, March 18th 2013 2:50 PM would be date 0318145013 # Example : 0206131223 if [ $# == '1' ]; then date $1 ret=$? if [ $ret == "0" ]; then echo "Format changed Successfully" else echo "Error in format change" fi exit $ret else echo "Invalid Arguments - Please refer description of the script" exit 1 fi